package com.xuxueli.xxlrpc.util;

import java.io.PrintWriter;
import java.io.StringWriter;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2022/5/31 23:58
 */
public class ThrowableUtil {
    public static String toString(Throwable e) {
        StringWriter stringWriter = new StringWriter();
        e.printStackTrace(new PrintWriter(stringWriter));
        String errorMsg = stringWriter.toString();
        return errorMsg;
    }
}
